package jnpf.util;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 * @date 2021/3/16 8:54
 */
@Data
public class BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "F_ID", type = IdType.ASSIGN_ID)
    private String id;

    @TableField("F_CREATORUSERID")
    private String creatorUserId;

    @TableField("F_CREATORTIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;

    @TableField("F_LASTMODIFYUSERID")
    private String lastModifyUserId;

    @TableField("F_LASTMODIFYTIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastModifyTime;

    @TableField("F_DELETEMARK")
    private Boolean deleteMark;

    @TableField("F_DELETEUSERID")
    private String deleteUserId;

    @TableField("F_DELETETIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deleteTime;
}
